package ai.people.netmon.framework.domain.graph;

import ai.people.netmon.framework.domain.archives.annotation.CheckEmpty;
import ai.people.netmon.framework.domain.archives.vo.ArchivesVO;
import com.alibaba.fastjson.PropertyNamingStrategy;
import com.alibaba.fastjson.annotation.JSONType;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author zhenglin
 * @date 2022/4/26
 */
@Data
@NoArgsConstructor
@JSONType(naming = PropertyNamingStrategy.SnakeCase)
public class WalletBaseTag {
    /**
     * 地址
     */
    @CheckEmpty(message = "钱包地址不能为空")
    @NotBlank(message = "钱包地址不能为空")
    private String address;


    public WalletBaseTag(ArchivesVO.SocialInfo.Wallet walletInfo) {
        this.address = walletInfo.getAddress();
    }
}
